import {Link, Outlet, useSearchParams} from "react-router-dom";
import {useEffect} from "react";

const Index=()=>{
    const [params,setParams]=useSearchParams();
    useEffect(() => {
    }, []);
    return (
        <div>
            <div>首页</div>
            <Link to="/">Demo1</Link>
            <Link to="/Demo2">Demo2</Link>
            <Outlet/>
        </div>
    )
}
export default Index